import http from '@/util/http.js'

/**
 * 分页查询客户端设备列表
 * @param params
 */
export function getClientPage(params) {
  return http({
    url: '/kadmin/mqtt/getClientPage',
    method: 'post',
    data: params
  })
}

/**
 * 新增客户端
 * @param params
 * @returns {AxiosPromise}
 */
export function addClient(params) {
  return http({
    url: '/kadmin/mqtt/addClient',
    method: 'post',
    data: params
  })
}

/**
 * 更新客户端
 * @param params
 * @returns {AxiosPromise}
 */
export function updateClient(params) {
  return http({
    url: '/kadmin/mqtt/updateClient',
    method: 'post',
    data: params
  })
}

/**
 * 删除客户端
 * @param params
 * @returns {AxiosPromise}
 */
export function deleteClient(params) {
  return http({
    url: '/kadmin/mqtt/deleteClient',
    method: 'post',
    data: params
  })
}
